import _ from 'lodash';
import printMe from '../assets/js/print.js';

function component() {
	let element = document.createElement('div');
	// Lodash, now imported by this script
	element.innerHTML = _.join(['Hello', 'webpack'], ' ');

	// 创建按钮
	let btn = document.createElement('button');
	btn.innerHTML = 'Click me and check the console!';
   	btn.onclick = printMe;

   	element.appendChild(btn);
	return element;
}

document.body.appendChild(component());